#include<signal.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
void singintfunc(int sign_no)
{
	if(sign_no == SIGINT)
		printf("I have get SIGINT");
	
}
void singoutfunc(int sign_no)
{
	if(sign_no == SIGQUIT)
		printf("I have get SIGINT");
	
}
int main()
{
	printf("Waiting for signal singint or sigqout\n");
	signal(SIGINT,singintfunc);
	signal(SIGQUIT,singoutfunc);
	pause();
	exit(0);
}
